import request from '../utils/request';

export function login(mobile:string,password:string){
    return request.post('/auth/loginByMobile',{mobile,password})
}
export function getInfo(){
    return request({
        method:'get',
        url:'user/info',
        responseType:'json'
    })
}
export function updateInfo(avatar:string){
    return request.post('/user/updateInfo',{avatar})
}
export function getCollect(typeId:string){
    return request.get('/collect/list',{params:{typeId}})
}
export function delCollect(typeId:string,valueId:string){
    return request.post('/collect/addordelete',{typeId,valueId})
}